#define _CRT_SECURE_NO_WARNINGS 1

#include <stdlib.h>
int* getConcatenation(int* nums, int numsSize, int* returnSize) {
    int* ans = (int*)malloc(sizeof(int) * numsSize * 2);
    int n = 0;
    for (int i = 0; i < 2; ++i)
    {
        for (int j = 0; j < numsSize; ++j)
        {
            ans[n] = nums[j];
            ++n;
        }
    }
    *returnSize = numsSize * 2;
    return ans;
}